class SearchController extends BaseController{

    def beforeInterceptor = [action:this.auth, except:['login', 'dologin']]
    
    def perform = {
        List l = Project.findByName(params.keyword);
        redirect(action:show, list:l);
    }

    def show = {
        def listToShow = params.list;
       // println params.list.class
        if(!listToShow){
            return [list : listToShow]
        }
        else{
            redirect(controller:"project", action:"index");
        }
    }
}
